package com.ruoyi.buss.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.buss.system.mapper.DataCustGhxxMapper;
import com.ruoyi.buss.system.domain.DataCustGhxx;
import com.ruoyi.buss.system.service.IDataCustGhxxService;

/**
 * 信贷工号与员工号对照Service业务层处理
 * 
 * @author sxy
 * @date 2021-07-16
 */
@Service
public class DataCustGhxxServiceImpl implements IDataCustGhxxService 
{
    @Autowired
    private DataCustGhxxMapper dataCustGhxxMapper;

    /**
     * 查询信贷工号与员工号对照
     * 
     * @param name 信贷工号与员工号对照ID
     * @return 信贷工号与员工号对照
     */
    @Override
    public DataCustGhxx selectDataCustGhxxById(String name)
    {
        return dataCustGhxxMapper.selectDataCustGhxxById(name);
    }

    /**
     * 查询信贷工号与员工号对照列表
     * 
     * @param dataCustGhxx 信贷工号与员工号对照
     * @return 信贷工号与员工号对照
     */
    @Override
    public List<DataCustGhxx> selectDataCustGhxxList(DataCustGhxx dataCustGhxx)
    {
        return dataCustGhxxMapper.selectDataCustGhxxList(dataCustGhxx);
    }

    /**
     * 新增信贷工号与员工号对照
     * 
     * @param dataCustGhxx 信贷工号与员工号对照
     * @return 结果
     */
    @Override
    public int insertDataCustGhxx(DataCustGhxx dataCustGhxx)
    {
        return dataCustGhxxMapper.insertDataCustGhxx(dataCustGhxx);
    }

    /**
     * 修改信贷工号与员工号对照
     * 
     * @param dataCustGhxx 信贷工号与员工号对照
     * @return 结果
     */
    @Override
    public int updateDataCustGhxx(DataCustGhxx dataCustGhxx)
    {
        return dataCustGhxxMapper.updateDataCustGhxx(dataCustGhxx);
    }

    /**
     * 批量删除信贷工号与员工号对照
     * 
     * @param names 需要删除的信贷工号与员工号对照ID
     * @return 结果
     */
    @Override
    public int deleteDataCustGhxxByIds(String[] names)
    {
        return dataCustGhxxMapper.deleteDataCustGhxxByIds(names);
    }

    /**
     * 删除信贷工号与员工号对照信息
     * 
     * @param name 信贷工号与员工号对照ID
     * @return 结果
     */
    @Override
    public int deleteDataCustGhxxById(String name)
    {
        return dataCustGhxxMapper.deleteDataCustGhxxById(name);
    }
}
